<template>
  <div class="home">
    <h1 class="active">我是home</h1>
    <h2>当前计数：{{ current }}</h2>
    <button @click="change">+1</button>
  </div>
</template>

<script>
export default {
    name:"home",
  data() {
    return {
      current: 0,
    }
  },
  methods: {
    change() {
      this.current++
    },
  },
}
</script>
<style scoped>
.active {
  color: red;
}
</style>
